import { defineStore } from 'pinia';
import request from '@/api/index';
import { LocationQueryValue } from 'vue-router';
export const userStore = defineStore('user', {
  state: () => ({
    user_id:'' as LocationQueryValue | LocationQueryValue[],
    debris_balance:0 as number,
  }),
  getters: {
    
  },
  actions: {
    async getWallet() {
      const res = await request.getUserWallet();
      const { debris_balance=0 } = res.data;
      this.debris_balance = debris_balance
    },
    async getActInfo() {

    }
  },
})